<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <script type="module" src="../../../dist/core.js"></script>
    </head>
    <body>
        <script type="mpy" async>
          from pyscript import create_named_worker

          await create_named_worker("./worker.py", name="micropython_version", type="mpy")
        </script>
        <script type="mpy" config="./config.toml" async>
          from test import test
          await test("mpy")
        </script>
        <script type="py" config="./config.toml" async>
          from test import test
          await test("py")
        </script>
        <script type="py" name="pyodide_version" worker>
          def pyodide_version():
              import sys
              return sys.version

          __export__ = ['pyodide_version']
        </script>
    </body>
</html>
